home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
System Booster
/
System Booster.iso
/
SYS
/
s
/
SASC
/
FindSymbol.bed
< prev
next >
Wrap
Text File
|
1996-09-26
|
770b
|
42 lines
/*
** $VER: FindSymbol.bed 1.0 (14.01.96)
**
** Show the include file in which is defined the symbol under the cursor.
** It needs the file INCLUDE:all.gst created with this command:
**
** SC noobjname MGST=INCLUDE:all.gst SC:source/all.c
*/
gstfile = "INCLUDE:all.gst"
tempfile = 'T:gstout'
OPTIONS RESULTS
'GetWord'
parm = RESULT
IF RC ~= 0 | parm = "" THEN DO
BeepScreen
SetStatusBar 'Cursor not on a word !'
END; ELSE DO
ADDRESS COMMAND 'SC:C/GST >' || tempfile gstfile parm
IF RC ~= 0 THEN DO
BeepScreen
SetStatusBar 'Symbol not found !'
END; ELSE DO
Open(file,tempfile,'read')
where = ReadLn(file)
Close(file)
PARSE VAR where file . line .
'OpenDoc WINDOW=////READONLY' file
ADDRESS VALUE RESULT
Move line+1
ScrollView 2
END
END